/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Event_Types_Codes}.
 * </p>
 *
 * @author Cedric Nana
 * @see Event_Types_Codes
 * @generated
 */
public class Event_Types_CodesWrapper implements Event_Types_Codes,
	ModelWrapper<Event_Types_Codes> {
	public Event_Types_CodesWrapper(Event_Types_Codes event_Types_Codes) {
		_event_Types_Codes = event_Types_Codes;
	}

	@Override
	public Class<?> getModelClass() {
		return Event_Types_Codes.class;
	}

	@Override
	public String getModelClassName() {
		return Event_Types_Codes.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("Messages_ID", getMessages_ID());
		attributes.put("Eventtypecodes_ID", getEventtypecodes_ID());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long Messages_ID = (Long)attributes.get("Messages_ID");

		if (Messages_ID != null) {
			setMessages_ID(Messages_ID);
		}

		Long Eventtypecodes_ID = (Long)attributes.get("Eventtypecodes_ID");

		if (Eventtypecodes_ID != null) {
			setEventtypecodes_ID(Eventtypecodes_ID);
		}
	}

	/**
	* Returns the primary key of this event_ types_ codes.
	*
	* @return the primary key of this event_ types_ codes
	*/
	@Override
	public long getPrimaryKey() {
		return _event_Types_Codes.getPrimaryKey();
	}

	/**
	* Sets the primary key of this event_ types_ codes.
	*
	* @param primaryKey the primary key of this event_ types_ codes
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_event_Types_Codes.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the messages_ i d of this event_ types_ codes.
	*
	* @return the messages_ i d of this event_ types_ codes
	*/
	@Override
	public long getMessages_ID() {
		return _event_Types_Codes.getMessages_ID();
	}

	/**
	* Sets the messages_ i d of this event_ types_ codes.
	*
	* @param Messages_ID the messages_ i d of this event_ types_ codes
	*/
	@Override
	public void setMessages_ID(long Messages_ID) {
		_event_Types_Codes.setMessages_ID(Messages_ID);
	}

	/**
	* Returns the eventtypecodes_ i d of this event_ types_ codes.
	*
	* @return the eventtypecodes_ i d of this event_ types_ codes
	*/
	@Override
	public long getEventtypecodes_ID() {
		return _event_Types_Codes.getEventtypecodes_ID();
	}

	/**
	* Sets the eventtypecodes_ i d of this event_ types_ codes.
	*
	* @param Eventtypecodes_ID the eventtypecodes_ i d of this event_ types_ codes
	*/
	@Override
	public void setEventtypecodes_ID(long Eventtypecodes_ID) {
		_event_Types_Codes.setEventtypecodes_ID(Eventtypecodes_ID);
	}

	@Override
	public boolean isNew() {
		return _event_Types_Codes.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_event_Types_Codes.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _event_Types_Codes.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_event_Types_Codes.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _event_Types_Codes.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _event_Types_Codes.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_event_Types_Codes.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _event_Types_Codes.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_event_Types_Codes.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_event_Types_Codes.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_event_Types_Codes.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Event_Types_CodesWrapper((Event_Types_Codes)_event_Types_Codes.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.Event_Types_Codes event_Types_Codes) {
		return _event_Types_Codes.compareTo(event_Types_Codes);
	}

	@Override
	public int hashCode() {
		return _event_Types_Codes.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.Event_Types_Codes> toCacheModel() {
		return _event_Types_Codes.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.Event_Types_Codes toEscapedModel() {
		return new Event_Types_CodesWrapper(_event_Types_Codes.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.Event_Types_Codes toUnescapedModel() {
		return new Event_Types_CodesWrapper(_event_Types_Codes.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _event_Types_Codes.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _event_Types_Codes.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_event_Types_Codes.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof Event_Types_CodesWrapper)) {
			return false;
		}

		Event_Types_CodesWrapper event_Types_CodesWrapper = (Event_Types_CodesWrapper)obj;

		if (Validator.equals(_event_Types_Codes,
					event_Types_CodesWrapper._event_Types_Codes)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public Event_Types_Codes getWrappedEvent_Types_Codes() {
		return _event_Types_Codes;
	}

	@Override
	public Event_Types_Codes getWrappedModel() {
		return _event_Types_Codes;
	}

	@Override
	public void resetOriginalValues() {
		_event_Types_Codes.resetOriginalValues();
	}

	private Event_Types_Codes _event_Types_Codes;
}